#include "PrecompiledHeader.h"
#include "CtrlBox.h"

/*--------------------------------------------------------------------------*/

CtrlBox::CtrlBox(ICtrl* parent, const std::string& name) :
	ICtrl(parent, name)
{

}

/*--------------------------------------------------------------------------*/

CtrlBox::~CtrlBox()
{

}

/*--------------------------------------------------------------------------*/

void CtrlBox::Draw()
{
	/*
	TODO:
	- bordery
	*/
	//OpenGL::DrawRectangle(this->m_screenPosition, this->m_screenSizePosition, this->m_background);

	this->CallChildsDraw();
}

/*--------------------------------------------------------------------------*/

void CtrlBox::ReadSpecials(std::ifstream& file, const std::string& firstWord)
{
	this->ReadBasicGfx(file, firstWord);
}

/*--------------------------------------------------------------------------*/

void CtrlBox::OnLMBDrag(const glm::vec2& clickPosition, const glm::vec2& movement)
{
	this->SetPosition(this->GetPosition() + movement);
}

/*--------------------------------------------------------------------------*/